
package com.wyzz.hr.base.action;

import com.wyzz.hr.base.BaseAction;
import com.wyzz.hr.bo.IBaseBo;
import com.wyzz.hr.spring.SpringBeanFactory;

public class DwrForAutoNO extends BaseAction {

	public DwrForAutoNO() {
	}

	public String getAutoNo(String domain, String model, String fieldName) {
		String result = "";
		if (model == null)
			return "";
		model = model.trim();
		if (model.length() == 0) {
			return "";
		} else {
			IBaseBo bo = (IBaseBo) SpringBeanFactory.getBean("baseService");
			result = bo.getNoByPrefix(domain, fieldName, model);
			return result;
		}
	}
}
